home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / TCL1 / GRAPH_FO / (GRAPH / GRAPH_HE / GREDGE.H < prev    next >
Text File  |  1991-02-16  |  1KB  |  40 lines

  1. /******************************************************************************
  2.     GrEdge.h
  3.         Graph methods in Object C.
  4.         This implements the GrEdge class.
  5.  
  6.     SUPERCLASS = GrNode
  7.  
  8.     Copyright ⌐ 1991 Maarten Meijer. All rights reserved.
  9.         CIS 100016,1764; FidoNet 2:512/114
  10. *******************************************************************************/
  11.  
  12. #define    _H_GrEdge
  13.  
  14. /* includes */
  15. #include "GrNode.h"
  16. #include "GrVertex.h"
  17.  
  18. /* class definition */
  19. struct GrEdge : GrNode {
  20.     /* instance variables */
  21.     GrVertex        *fromVertex;
  22.     GrVertex        *toVertex;
  23.  
  24.     void        IGraphNode(void);                /* OVERRIDE */
  25.     /* Drawing methods */
  26.     void        _Draw(void);                    /* OVERRIDE */
  27.     void        Draw(void);                        /* OVERRIDE */
  28.     void        _Erase(void);                    /* OVERRIDE */
  29.     void        Erase(void);                    /* OVERRIDE */
  30.     /* Location methods */
  31.     void        SetRegion(void);                /* OVERRIDE */
  32.     Boolean        Incident(GrNode *which);        /* OVERRIDE */
  33.     void        SetFrom(GrVertex    *which);
  34.     GrVertex *    GetFrom(void);
  35.     void        SetTo(GrVertex *which);
  36.     GrVertex *    GetTo(void);
  37.     void        GetRect(Rect *rect);
  38.     Boolean        NodeInRect(Rect *r);
  39.     };
  40.